package br.edu.unilasalle.simon_api.rs;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.beans.factory.annotation.Autowired;

import br.edu.unilasalle.simon_api.domain.FormaPagamento;
import br.edu.unilasalle.simon_api.service.IFormPagtoService;

@Path("/formPagto")
public class FormPagtoRS {
	
	@Autowired
	private IFormPagtoService service;
	
	@GET
    @Produces(MediaType.APPLICATION_JSON)
    public List<FormaPagamento> findAll() {
		return service.findAll();
    }
	
	@GET
	@Path("/queryAtivos")
    @Produces(MediaType.APPLICATION_JSON)
    public List<FormaPagamento> findAllAtivo() {
		return service.findAllAtivo();
    }

}
